<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<style>
<!--
.float_left{
	float:left;
	padding:5px 10px;
	width: 10%;
}
.float_left_fix{
	float:left;
	padding:5px 10px;
	width: 20%;
}
-->
</style>
<div style="width:auto;">
<table class="tableInit">
		<thead>
			<tr>
       			<th>symbol</th>
       			<th>unrealizedQty</th>
       			<th>realizedQty</th>
       			<th>currPrice</th>
       			<th>lastUpdate</th>
       		</tr>
		</thead>
		<c:forEach var="asset" items="${assets }">
       		<tr>
       			<td>${asset.symbol }</td>
       			<td>${asset.unrealizedQuantity }</td>
       			<td>${asset.realizedQuantity }</td>
       			<td>${asset.currentPrice }</td>
       			<td>${asset.lastUpdate }</td>
       		</tr>
		</c:forEach>
</table>

	<jsp:include page="/pages/common/pagination.htm" />
	<div class="pagingInfo hidden" startRow='${pagingBean.startRow + 1}'
		endRow='${pagingBean.endRow}'
		startDisplayPage='${pagingBean.startDisplayPage}'
		endDisplayPage='${pagingBean.endDisplayPage}'
		totalPages='${pagingBean.totalPages}'
		totalRows='${pagingBean.totalRows}'
		currentPage='${pagingBean.currentPage}'></div>
	
</div>
<%-- 
<s:iterator value="assets">
	<s:property value="symbol" />
	<s:property value="description" />
	<s:property value="unrealizedQuantity" />
	<s:property value="realizedQuantity" />
	<s:property value="currentPrice" />
	<s:property value="lastUpdate" />
	<br/>
	</s:iterator>
	
	 <ul>
          <li class="float_left">${asset.symbol }</li>
          <li class="float_left_fix">${asset.description }</li>
          <li class="float_left">${asset.unrealizedQuantity }</li>
          <li class="float_left">${asset.realizedQuantity }</li>
          <li class="float_left">${asset.currentPrice }</li>
          <li class="float_left">${asset.lastUpdate }</li>
        </ul>
--%>
